﻿@using BastInfos.Helpers

@model BastInfos.Models.Home.IndexModel

@{
    ViewBag.Title = "Bienvenue";
}

<div id="content">
	<div class="news_bloc">
		<h1><span>L'&eacute;ditorial de <em>Bast'Infos</em></span></h1>
		<br/>
		@Html.Raw(Model.Edito) 
	</div>
	<br/><br/>
	<div class="news_bloc">
		<h1><span>La UNE de <em>Bast'Infos</em></span></h1>
		<br/>
		@Html.RouteLink(Model.Article.Title, "Article", new { title = Model.Article.Title, id = Model.Article.id_Article })
		<br/>
		<br/>
		@Html.Raw(Model.Article.Introduction) 
	</div>
	<br/><br/>
	<div class="news_bloc">
		<h1><span>Derniers article du journal</span></h1>
		<br/>
		<ul>
        	@foreach (var article in Model.Articles) { 
				<li>@Html.RouteLink(article.Title, "Article", new { title = article.Title, id = article.id_Article })</li>
			} 
		</ul>
	</div>
	<br/><br/>
	<div class="news_bloc">
		<h1><span>Prochains Evenements</span></h1>
		<br/>
		<ul>
        	@foreach (var evt in Model.Events) { 
				<li>@Html.RouteLink(evt.Title, "Event", new { title = evt.Title, id = evt.id_Event })</li>
			} 
		</ul>
	</div>
	<br class="clear" />
</div>